a few words about web development

[pChart] [FATAL] Pie chart can only accept one serie of data.

Fixing pChart fatal error
The following error: "[FATAL] Pie chart can only accept one serie of data." can be thrown by pChart not only when you try to add more than 1 serie of data but also when you don't add any points to any serie.
This can happen for example when you add points to a chart from a database.
This very misleading error message took my 15 minutes, so be warned!

Comments